//
//  Filter.h
//  openJira
//
//  Created by Vincent Demay on 29/04/10.
//  Copyright 2010 Goojet. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "OJConnector.h"
#import "OJXMLRPCModel.h"

@class OJXMLRPCModel;

/////////////////////// OJFILTER ////////////////////////////
@interface OJFilter : NSObject {
	NSString *lid;
	NSString *name;
	NSString *description;
	NSString *author;
	NSString *project;
}
@property (nonatomic, retain) NSString *lid;
@property (nonatomic, retain) NSString *name;
@property (nonatomic, retain) NSString *description;
@property (nonatomic, retain) NSString *author;
@property (nonatomic, retain) NSString *project;

@end


/////////////////////// OJLISTFILTER ////////////////////////
@protocol OJFilterListDelegate;

@interface OJFilterList : OJXMLRPCModel {
	NSMutableArray *filters;
	id<OJFilterListDelegate> delegate;
}
@property (nonatomic, retain) NSMutableArray *filters;
@property (nonatomic, assign) id<OJFilterListDelegate> delegate;
- (void) getFavouriteFilters;
@end


@protocol OJFilterListDelegate
- (void) object:(OJFilterList*) filter isReady:(BOOL) onError;

@end

